/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class OrderEntity {
    @NotNull
    private final String alipayOrderStr;
    @NotNull
    private final WxPayParam wxpayParam;

    public OrderEntity(@NotNull String alipayOrderStr, @NotNull WxPayParam wxpayParam) {
        Intrinsics.checkNotNullParameter(alipayOrderStr, "alipayOrderStr");
        Intrinsics.checkNotNullParameter(wxpayParam, "wxpayParam");
        this.alipayOrderStr = alipayOrderStr;
        this.wxpayParam = wxpayParam;
    }

    public static /* synthetic */ OrderEntity copy$default(OrderEntity orderEntity, String str, WxPayParam wxPayParam, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = orderEntity.alipayOrderStr;
        }
        if ((i2 & 2) != 0) {
            wxPayParam = orderEntity.wxpayParam;
        }
        return orderEntity.copy(str, wxPayParam);
    }

    @NotNull
    public final String component1() {
        return this.alipayOrderStr;
    }

    @NotNull
    public final WxPayParam component2() {
        return this.wxpayParam;
    }

    @NotNull
    public final OrderEntity copy(@NotNull String alipayOrderStr, @NotNull WxPayParam wxpayParam) {
        Intrinsics.checkNotNullParameter(alipayOrderStr, "alipayOrderStr");
        Intrinsics.checkNotNullParameter(wxpayParam, "wxpayParam");
        return new OrderEntity(alipayOrderStr, wxpayParam);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof OrderEntity)) {
            return false;
        }
        OrderEntity orderEntity = (OrderEntity) obj;
        return Intrinsics.areEqual(this.alipayOrderStr, orderEntity.alipayOrderStr) && Intrinsics.areEqual(this.wxpayParam, orderEntity.wxpayParam);
    }

    @NotNull
    public final String getAlipayOrderStr() {
        return this.alipayOrderStr;
    }

    @NotNull
    public final WxPayParam getWxpayParam() {
        return this.wxpayParam;
    }

    public int hashCode() {
        return (this.alipayOrderStr.hashCode() * 31) + this.wxpayParam.hashCode();
    }

    @NotNull
    public String toString() {
        return "OrderEntity(alipayOrderStr=" + this.alipayOrderStr + ", wxpayParam=" + this.wxpayParam + ')';
    }
}